package org.example.service;

import org.example.rpc.RpcFactory;

/**
 * @ClassName HelloServiceImpl
 * @Description: TODO
 * @Author mxzhang.ethan
 * @Date 2022/4/12
 * @Version V1.0
 **/
public class HelloServiceImpl implements HelloService {
    @Override
    public String getHelloWord() {
        return "hello,client,I impl  hello server";
    }

    @Override
    public int sum(int a, int b) {
        return a+b;
    }

    public static void main(String[] args) {
        HelloService helloService = new HelloServiceImpl();
        RpcFactory.build().register(helloService).start();
    }
}
